"use strict";

const chainConfig = require("./src/config/chainWebpackConfig");
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;

const path = require("path");
const resolve = (dir) => path.join(__dirname, dir);
module.exports = {
  publicPath: "/",
  outputDir: "dist",
  assetsDir: "static",
  devServer: {
    port: 3030,
    hotOnly: true,
    open: true,
    hot: true,
  },
  productionSourceMap: false,
  runtimeCompiler: true,
  configureWebpack: {
    resolve: {
      alias: {
        "@": resolve("src"),
      },
    },
    plugins: [
      // new BundleAnalyzerPlugin()
    ],
  },
  css: {

  },
  chainWebpack: chainConfig,
};
